package com.demo.aop.advisor;

import com.demo.aop.pointcut.Pointcut;

public class AspectJPointcutAdvisor implements Advisor{

    private String adviceBeanName;

    private Pointcut pointcut;

    public AspectJPointcutAdvisor(String adviceBeanName,Pointcut pointcut){
        this.adviceBeanName = adviceBeanName;
        this.pointcut = pointcut;
    }

    @Override
    public String getAdviceBeanName() {
        return this.adviceBeanName;
    }

    @Override
    public Pointcut getPointcut() {
        return this.pointcut;
    }

}
